package com.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author HuangSuip
 */
@Component
public class StaticTest {

    public static Integer port;

    public Integer getPort() {
        return port;
    }


    @Value("${server.port}")
    public void setPort(Integer port) {
        StaticTest.port = port;
    }
}
